package cn.com.nes.mybatis.agent.ope.mapper;

import cn.com.nes.mybatis.agent.ope.entity.IotMyDev;
import cn.com.nes.mybatis.agent.ope.entity.IsEquipmentFaultHistoryInfo;
import cn.com.nes.mybatis.integrateServ.entity.AppUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IsAppMapper extends BaseMapper<IotMyDev> {
    IotMyDev getSbid(@Param("iotMyDev") IotMyDev iotMyDev);

    void  insertIotMyDev(@Param("iotMyDev") IotMyDev iotMyDev);

    List<Map<String, Object>> getProtocolInfoByProtocol(@Param("protocolId")  String protocolId);

    List<Map<String, Object>> getMyDevList (@Param("userId")  String userId,@Param("sbId")  String sbId);

    List<Map<String, Object>> getFaultRecords(@Param("userId") String userId,@Param("sbId") String sbId);

    void deleteManufacturerUser(@Param("phone")String phone);
    void addManufacturerUser(@Param("appUser") AppUser appUser);

    List<Map<String, Object>> getRealTimeData(@Param("deviceProtocolId") String deviceProtocolId);

    void addFaultRecords(@Param("isEquipmentFaultHistoryInfo") IsEquipmentFaultHistoryInfo isEquipmentFaultHistoryInfo);

}
